package com.ql.dao.menzhen;

import com.ql.pojo.menzhen.Doctor;
import com.ql.pojo.menzhen.Fomulary;
import com.ql.pojo.menzhen.Guahaodan;
import com.ql.pojo.menzhen.MenzhengDoctor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FomularyMapper {

    List<Fomulary> qryAll(@Param("uId") int uId)throws Exception;

    //根据处方id查看病历
    Fomulary qryByFid(@Param("id") int id)throws Exception;


    int add(Fomulary fomulary)throws Exception;

//    根据id查看科室医生
    List<Doctor> qryDoctor(@Param("department") int kid)throws Exception;

    //根据医生id医生
    Doctor qryByIdDoctor(@Param("docId")int dId)throws Exception;

    //新增门诊医生
    int saveMenzheng(MenzhengDoctor menzhengDoctor)throws Exception;

    //新增挂号单
    int saveGuaHao(Guahaodan guahaodan)throws Exception;
}
